package com.insleton.admin.employee.model;

public class SubEmp {
    private String id;
    private String name;
    private Integer state;
    private String account;
    private Double salary;
    private String email;
    private String deptId;

    public SubEmp() {
    }

    public SubEmp(String id, String name, Integer state) {
        this.id = id;
        this.name = name;
        this.state = state;
    }

    /**
     * 作为nameNativeQuery的resultClass，要有对应的构造函数，构造函数的参数列表和要查询的列表要一致
     * @param id
     * @param name
     * @param account
     * @param email
     */
    public SubEmp(String id, String name, String account, String email) {
        this.id = id;
        this.name = name;
        this.account = account;
        this.email = email;
    }

    public SubEmp(String id, String name, Integer state, String account, String email) {
        this.id = id;
        this.name = name;
        this.state = state;
        this.account = account;
        this.email = email;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }
}
